-- define project
set_project("ctest")
-- set_xmakever("2.3.2")
-- set_version("0.0.1", {build = "%Y%m%d%H%M"})

-- set common flags
set_warnings("all")
set_languages("c99")
-- 优化等级 -O0
set_optimize("none")
-- add_cxflags("-Wno-error=deprecated-declarations", "-fno-strict-aliasing", "-Wno-error=expansion-to-defined")
-- add_mxflags("-Wno-error=deprecated-declarations", "-fno-strict-aliasing", "-Wno-error=expansion-to-defined")

-- add build modes
add_rules("mode.debug")

-- lib
includes("lib/*")

-- includes sub-projects
includes("demo/*/xmake.lua")

-- https://xmake.io/mirror/manual/project_target.html
